import Hips from '@hips/vue-core';
import App from './App.vue';
import Dsx from '@hips/plugin-dataset-vuex';

import { Toast, Indicator, Dialog, Actionsheet } from '@hips/vue-ui';

const { Router } = Dsx;

const plugins = [Dsx, Toast, Indicator, Dialog, Actionsheet];

const hips = new Hips({
  el: '#app',
  root: App,
  useDsx: true,
});

hips.inject(plugins);

const { router } = new Router();

hips.start({ router });
